import axios from "../../axios.js";

export default {

  //已落实列表
  GETALLORDER(data) {
    return axios({
      url: '/crm/receive/queryReceived',
      method: 'post',
      data
    })
  },
  //待落实列表
  GETALLORDER2(data) {
    return axios({
      url: '/crm/receive/queryReceiving',
      method: 'post',
      data
    })
  },
  //所有接单列表
  GETALLORDER3(data) {
    return axios({
      url: '/crm/receive/queryReceiveAll',
      method: 'post',
      data
    })
  },


  //获取渠道专员
  GETUSER(data) {
    return axios({
      url: '/singleChannelZlc/selectCmoByDepId',
      method: 'get',
      params: data
    })
  },

  //获取渠道
  GETCHANNEL(data) {
    return axios({
      url: '/singleChannelZlc/selectChannelMaintenance',
      method: 'get',
      params: data
    })
  },

  //获取渠道专员回显详情  
  GETUSERDETAILS(data) {
    return axios({
      url: '/singleChannelZlc/detailsQdfp',
      method: 'post',
      data
    })
  },

  //修改渠道
  EDTICHAN(data) {
    return axios({
      url: '/singleChannelZlc/updateJdqd',
      method: 'post',
      data
    })
  },
  // 获取二级渠道
  getChannel_Api(data) {
    return axios({
      url: '/crm/receive/selectTwoChannel',
      method: 'get',
      params: data
    })
  },
  // 保存渠道
  saveChannel_Api(data){
    return axios({
      url: '/crm/receive/receiveTwoChannel',
      method: 'post',
      data
    })
  },
  // 已落实接单分配渠道
  saveChannel_Api2(data){
    return axios({
      url: '/crm/receive/addTwoChannel',
      method: 'post',
      data
    })
  },
};
